package com.free.food.order.mq.receiver;

import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 类功能描述：
 *
 * @author：刘富国
 * @createTime：2019-02-27 17:48
 */
@Component
@EnableBinding(StreamClient.class)
public class StreamReceiver {

    @StreamListener(value = StreamClient.INPUT)
    public void process(List<String> stringList) {
        System.out.println("StreamClient" + stringList.toString());
    }
}
